// import count from '@feidao/web/atom/nodejs/db/count';
import query from '@dfeidao/atom-nodejs/db/query';
interface Message {
	productid: string;
}

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const systemid = '11';
	const asc = new Array();
	const desc = new Array();
	const { exec, prepare } = query(action_id, session_id, systemid);
	const productid = msg.productid;
	prepare('product_clent_type', ['client_style', 'client_point_id'], { productid, client_style: { $ne: 'desk' } }, 100, 1, asc, desc);
	const [data] = await exec();
	return data;
}
